﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DataAccessLayer;

namespace Bussiness {
    public class KhachHangBussiness {
        public KhachHangBussiness() { }

        public DataTable getTermsAndRepresentatives() {
            KhachHangRepository repository = new KhachHangRepository();
            return repository.getTermsAndRepresentatives();
        }

        public DataTable getTermsAndRepresentatives(String termID) {
            KhachHangRepository repository = new KhachHangRepository();
            return repository.getTermsAndRepresentatives(termID);
           // return 1;
        }

        public int insertContract(String contractType, float price, String employeeID, String termID) {
            KhachHangRepository repository = new KhachHangRepository();
            return repository.insertContract(contractType, price, employeeID, termID);
        }
    }
}
